package com.bupt.ilink.mapper;

import com.bupt.ilink.entity.ModelMetadata;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author LENOVO
* @description 针对表【model_metadata】的数据库操作Mapper
* @createDate 2024-08-03 13:02:58
* @Entity generator.domain.ModelMetadata
*/
@Mapper
public interface ModelMetadataMapper extends BaseMapper<ModelMetadata> {
    @Select("SELECT * FROM model_metadata")
    List<String> getAllNames();

    @Select("SELECT * FROM model_metadata WHERE model_id = #{targetId}")
    ModelMetadata selectById(String targetId);

}




